import request from "@/utils/request";
const api_name = "/admin/product/baseTrademark";
// 获取品牌列表接口
export const reqTrademackList = (page,limit) =>{
    return request.get(`/admin/product/baseTrademark/${page}/${limit}`)
}
export default {
  // 获取品牌类别接口
  reqTrademackList(page, limit) {
    return request.get(`/admin/product/baseTrademark/${page}/${limit}`);
  },
  //根据ID获取品牌
 // GET /admin/product/baseTrademark/get/{id}
  get(id) {
    return request.get(`${api_name}/get/${id}`)
  },

  //    修改接口
  update(trademark) {
    return request.put(`${api_name}/update`, trademark);
  },
  // 新增接口
  add(trademark) {
    return request.post(`${api_name}/save`, trademark);
  },

  //    删除接口
  remove(id) {
    return request.delete(`${api_name}/remove/${id}`);
  },
  findBaseTrademarkByKeyword(keyword) {
    return request({
      url: `${api_name}/findBaseTrademarkByKeyword/${keyword}`,
      method: "get",
    });
  },
};
